//
//  UIScrollView+RefreshView.h
//  Liker
//
//  Created by iBenz on 15/6/15.
//  Copyright (c) 2015年 Aoe. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^PulldownHandler)(UIScrollView *scrollView); // 返回是否下载
typedef void (^PullupHandler)(UIScrollView *scrollView);

@interface UIScrollView (PullHandler)
- (void)setPullDownHandler:(PulldownHandler)handler; // mind cycle retain
- (void)setPullUpHandler:(PullupHandler)handler;     // mind cycle retain

/**
 *  mark the footer view as stop-refreshing
 *
 *  @param nomore YES means no refresh any more
 */
- (void)endPulllAndMarkAsNomoreData:(BOOL)nomore;

- (void)autoPulldown;
- (void)setNomoreTitle:(NSString *)nomore;
@end


#import <MJRefresh/MJRefresh.h>
@interface RefreshHeader : MJRefreshHeader
@end
@interface RefreshFooter : MJRefreshAutoFooter
@end

